﻿using LoveNote.Database.Helpers;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Reflection.Metadata;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Media.Imaging;

namespace LoveNote.Database.Entities
{
    public partial class CustomerEntity
    {
        [NotMapped]
        public BitmapImage ImageSource
        {
            get
            {
                return ImageHelper.GetBitmapImage(Profile);
            }
        }

        private ProcessEntity process;
        /// <summary>
        /// 最新进度
        /// </summary>
        [NotMapped]
        public ProcessEntity Process
        {
            get { return process; }
            set { SetProperty(ref process, value); }
        }
    }
}
